import {
	uSetNavigationBarTitle
} from "../utils/uniUtils";
import date from "@/utils/date";

export default {
	data: function() {
		return {
			isLoaded: false,
			pageData: {},
			param: {
				dataTimeRange: [date.getToday(), date.getToday()],
			},
			navTitle: "",
			chartData: {},
			isShowCanvas: false
		};
	},
	methods: {
		openPopup(val) {
			console.log(val);
			this.isShowCanvas = val;
			// 判断是否打开弹窗显示隐藏问题
		}
	},
	mounted: function() {
		if (this.navTitle && this.navTitle.trim().length != 0) {
			uSetNavigationBarTitle(this.navTitle.trim());
		}
	},
};